package com.example.blog.strategicMode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class TestNow {
    private ExceptionHandling exceptionHandling;

    public TestNow(ExceptionHandling exceptionHandling) {
        this.exceptionHandling = exceptionHandling;
    }

    public Object testMethod(String a){
        return exceptionHandling.logging(a);
    }
}
